import { type PropType, type ExtractPropTypes } from 'vue';

export const proTableColumnSwitchProps = Object.assign({}, {
  width: {
    type: Number,
    default: 200,
  },
  cache: {
    type: String,
    default: '', // 缓存key 为空则不缓存
  },
  modelValue: {
    type: Object as PropType<any[]>,
    default: () => ({}),
  },
} as const);

export type ProTableColumnSwitchProps = ExtractPropTypes<typeof proTableColumnSwitchProps>;
